/**
 * 学生信息管理模块路由
 */

const studentMessageRouter = {
    path: 'student-message',
    component: resolve => require(['@/views/student-message/index'], resolve),
    children: [
        {
            path: 'details',
            name: 'details',
            component: resolve => require(['@/views/student-message/details'], resolve),
            meta: {
                authList: {
                // 页面访问, 暂定基础信息浏览权限
                    auth_page: '__auto_by_action:studata-student\\get',
                    // 浏览学生基础信息
                    auth_base_view: '__auto_by_action:studata-student\\get',
                    // 基础信息编辑
                    auth_base_edit: '__auto_by_action:studata-student\\set',
                    // 子权限基础信息编辑-chat_edit
                    auth_base_chat_edit: 'studata.student.chat_edit',

                    // 基础信息添加
                    auth_base_add: '__auto_by_action:studata-student\\add',

                    // 平台信息
                    // 实习生
                    // 实习生个人信息
                    auth_amb_student_user: '__auto_by_action:studata-platform\\student\\student_user',
                    // 实习生参与项目列表
                    auth_amb_project_list: '__auto_by_action:studata-platform\\student\\student_project_simple_List',
                    // 实习生单个项目完成信息
                    auth_amb_project_statistic: '__auto_by_action:studata-platform\\student\\project_statistic',
                    // 实习生完成项目总体统计, 暂时不用, 单个项目完成信息包含
                    auth_amb_all_project_statistic: '__auto_by_action:studata-platform\\student\\student_project_statistic',
                    // 掌大生活
                    // 掌大生活-个人信息
                    auth_market_buyer_user: '__auto_by_action:studata-student\\market\\buyer_user',
                    // 掌大生活-任务列表
                    auth_market_buyer_task: '__auto_by_action:studata-platform\market\task_buyer_task',
                    // 掌大生活-订单列表
                    auth_market_buyer_order_list: '__auto_by_action:studata-platform\\market\\order_list',
                    // 补贴同学
                    // 补贴同学-订单列表
                    auth_bttx_rebate_list: '__auto_by_action:studata-platform\\bttx\\rebate_list',
                    // 高校洗衣机
                    auth_washer: '__auto_by_action:studata-platform\\washing\\get'
                },
                authResult: {}
            // 页面权限
            }
        },
        {
            path: 'list',
            name: 'list',
            component: resolve => require(['@/views/student-message/list'], resolve),
            meta: {
                authList: {
                // 浏览列表
                    auth_page: '__auto_by_action:studata-student\\get_list',
                    // 删除学生
                    auth_delete: '__auto_by_action:studata-student\\delete',
                    // 数据excel导入
                    auth_import: '__auto_by_action:studata-student\\import',
                    // 查看详情
                    auth_detail: '__auto_by_action:studata-student\\get'
                },
                authResult: {}
            }
        },
        {
            path: 'statistics',
            name: 'StudentStatistics',
            component: resolve => require(['@/views/student-message/statistics'], resolve),
        }
    ]
};

export default studentMessageRouter;
